#ifndef QPLPSUPPLIER_H
#define QPLPSUPPLIER_H

#include <QWidget>
#include <QCompleter>
#include "ui_qplpsupplier.h"

class QPLPSupplier : public QWidget
{
	Q_OBJECT

public:
	QPLPSupplier(QStringList supplier = QStringList(),QWidget *parent = 0);
	~QPLPSupplier();
	void set(QStringList supplier = QStringList());
	QString supplier() const { return ui.suppliervalue->text(); }
	QString ref() const { return ui.refvalue->text(); }
	void setFirst(bool firstOne);
	
public slots:
	void buttonClicked();
signals:
	void deleted();
	void added();
private:
	Ui::QPLPSupplierClass ui;
	bool m_first;
};

#endif
